import request from "/@/utils/request"

export function fetchList(query?: Object) {
  return request({
    url: '/wzjiang/wzColumn/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj?: Object) {
  return request({
    url: '/wzjiang/wzColumn',
    method: 'post',
    data: obj
  })
}

export function getObj(id?: string) {
  return request({
    url: '/wzjiang/wzColumn/' + id,
    method: 'get'
  })
}

export function delObjs(id?: string) {
  return request({
    url: '/wzjiang/wzColumn/'+id,
    method: 'delete',
    data: id
  })
}

export function putObj(obj?: Object) {
  return request({
    url: '/wzjiang/wzColumn',
    method: 'put',
    data: obj
  })
}

export function hiddenObj(id?: string, visible?: string) {
  return request({
    url: '/wzjiang/wzColumn/visible/' + id,
    method: 'put',
    params: {
      visible
    }
  })
}
export function getSonList() {
  return request({
    url: '/wzjiang/wzColumn/soncolumn',
    method: 'get'
  })
}

